package com.zch.exception_;

import java.io.FileNotFoundException;

public class ThrowsDetail {
    public static void main(String[] args) {

    }

    public void f1() throws FileNotFoundException {
        f2(); //抛出的编译时异常需要显式处理
    }
    public void f2() throws FileNotFoundException {}

    public void f3() {
        f4(); //抛出的运行时异常不需要显式处理
    }

    public void f4() throws ArithmeticException {}
}
